package com.bnq.control.common.utils;

public class ConnectStatus {
    /**
     * 连接状态对应提示信息
     *
     * @param nStatus
     * @return
     */
    public static String getConnectStatus(int nStatus) {
        String str;
        switch (nStatus) {
            case 0:
                str = "正在进行p2p连接";
                break;
            case 1:
                str = "正在进行转发连接";
                break;
            case 2:
                str = "正在登录主机";
                break;
            case 3:
                str = "已连接";
                break;
            case 4:
                str = "已断开连接";
                break;
            case 5:
                str = "桌面插件已连接";
                break;
            case 6:
                str = "p2p连接成功";
                break;
            case 7:
                str = "p2p握手中";
                break;
            case 8:
                str = "转发连接成功";
                break;
            case 9:
                str = "转发握手中";
                break;
            case 10:
                str = "转发连接已断开";
                break;
            case 11:
                str = "p2p连接已断开";
                break;
            default:
                str = "连接状态未知";
        }
        return str;
    }
}
